package cn.iocoder.yudao.module.etl.dto.dataset;


import cn.iocoder.yudao.module.etl.dal.dataobject.DatasetGroup;
import cn.iocoder.yudao.module.etl.dto.ITreeBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author gin
 * @Date 2021/2/20 8:17 下午
 */

public class DataSetGroupDTO extends DatasetGroup implements ITreeBase<DataSetGroupDTO> {
    @ApiModelProperty("标签")
    private String label;
    @ApiModelProperty("子节点")
    private List<DataSetGroupDTO> children;
    @ApiModelProperty("权限")
    private String privileges;
    @ApiModelProperty("节点类型")
    public String getNodeType(){
        return super.getType();
    };


    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public List<DataSetGroupDTO> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<DataSetGroupDTO> children) {
        this.children = children;
    }

    public String getPrivileges() {
        return privileges;
    }

    public void setPrivileges(String privileges) {
        this.privileges = privileges;
    }
}
